package cn.com.headfree.base.service.impl;

import cn.com.headfree.base.dao.SysDictionaryInfoDao;
import cn.com.headfree.base.service.SysDictionaryInfoService;
import cn.com.headfree.vo.SysDictionaryInfoVo;
import net.sf.json.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**  
 * 字典服务
 */
@Service("sysDictionaryInfoService")
public class SysDictionaryInfoServiceImpl implements SysDictionaryInfoService {

    @Autowired
    private SysDictionaryInfoDao sysDictionaryInfoDao;

    @Override
    public List<SysDictionaryInfoVo> getSysDictionaryInfo(String pId) {
        return sysDictionaryInfoDao.getSysDictionaryInfo(pId);
    }
    public static void main(String[] args) {
        String aa = "[{\"id\":\"d9de7319dc94455daac92d390cad03f4\",\"name\":\"一体化_统一消息_管理员\",\"code\":\"LB-AH-ZH14-05-00058\",\"domainId\":\"733ad59c35c641dda397ad3ae9ac47b4\",\"state\":\"Y\",\"description\":\"一体化_统一消息_管理员\",\"createTime\":\"2019-06-29 11:07:11\"},{\"id\":\"2b2255ea46c04f3d9fb00f04de507ed6\",\"name\":\"项目管理工具_特殊用户\",\"code\":\"projectSpecial\",\"domainId\":\"733ad59c35c641dda397ad3ae9ac47b4\",\"state\":\"Y\",\"description\":\"项目管理工具_特殊用户\",\"createTime\":\"2019-10-23 09:25:59\"},{\"id\":\"da924980fbf043f2959c0836d72a40b7\",\"name\":\"一体化_统一消息_普通用户\",\"code\":\"LB-AH-ZH14-05-00057\",\"domainId\":\"733ad59c35c641dda397ad3ae9ac47b4\",\"state\":\"Y\",\"description\":\"一体化_统一消息_普通用户标签库\",\"createTime\":\"2019-06-26 11:07:21\"},{\"id\":\"69c776f63a064b849dd729b2d36fd5c4\",\"name\":\"信通项目管理-管理员\",\"code\":\"xt_pro_manage\",\"domainId\":\"733ad59c35c641dda397ad3ae9ac47b4\",\"state\":\"Y\",\"description\":\"信通项目管理-管理员\",\"createTime\":\"2020-04-28 11:01:48\"},{\"id\":\"7cb8ea6fa9024ac09d071b63cfba348f\",\"name\":\"一体化-统一消息-测试\",\"code\":\"tyxx-test\",\"domainId\":\"733ad59c35c641dda397ad3ae9ac47b4\",\"state\":\"Y\",\"description\":\"一体化-统一消息-测试\",\"createTime\":\"2019-11-27 15:06:09\"},{\"id\":\"a170cca189b6486bafa56ab4018f4670\",\"name\":\"数据门户测试\",\"code\":\"sjmh_view_test\",\"domainId\":\"733ad59c35c641dda397ad3ae9ac47b4\",\"state\":\"Y\",\"description\":\"数据门户权限测试\",\"createTime\":\"2020-04-01 18:04:02\"},{\"id\":\"08f34fadc51c49a1ae0cc02544672c3e\",\"name\":\"i信通角色\",\"code\":\"ixt_role\",\"domainId\":\"733ad59c35c641dda397ad3ae9ac47b4\",\"state\":\"Y\",\"description\":null,\"createTime\":\"2019-12-19 15:09:16\"},{\"id\":\"5818b0d31dce4833a7a4408ac827a97e\",\"name\":\"999\",\"code\":\"999\",\"domainId\":\"733ad59c35c641dda397ad3ae9ac47b4\",\"state\":\"Y\",\"description\":null,\"createTime\":\"2020-01-06 16:38:40\"},{\"id\":\"d77928b083624e2c999b26dc0c7f35a5\",\"name\":\"i信通-测试-消息平台\",\"code\":\"message\",\"domainId\":\"733ad59c35c641dda397ad3ae9ac47b4\",\"state\":\"Y\",\"description\":null,\"createTime\":\"2020-01-14 11:18:28\"},{\"id\":\"d1a2524740194ee29fe380cf4ce29fe3\",\"name\":\"电网项目管理工具\",\"code\":\"D_WXM\",\"domainId\":\"733ad59c35c641dda397ad3ae9ac47b4\",\"state\":\"Y\",\"description\":\"电网项目管理工具\",\"createTime\":\"2020-04-30 16:48:46\"},{\"id\":\"ed64858c9e3849208f93e1e5c2accb1f\",\"name\":\"统一消息平台-运营管理员\",\"code\":\"0001\",\"domainId\":\"733ad59c35c641dda397ad3ae9ac47b4\",\"state\":\"Y\",\"description\":\"统一消息平台-运营管理员\",\"createTime\":\"2020-05-27 14:16:54\"},{\"id\":\"7e4d26ec98d54eef940152db66127bac\",\"name\":\"统一消息平台-用户\",\"code\":\"0003\",\"domainId\":\"733ad59c35c641dda397ad3ae9ac47b4\",\"state\":\"Y\",\"description\":\"普通用户\",\"createTime\":\"2020-05-27 14:16:25\"},{\"id\":\"ec289da1d35d421487880798d6366549\",\"name\":\"统一消息平台-运维管理员\",\"code\":\"0002\",\"domainId\":\"733ad59c35c641dda397ad3ae9ac47b4\",\"state\":\"Y\",\"description\":\"统一消息平台-运维管理员\",\"createTime\":\"2020-05-27 14:17:16\"},{\"id\":\"33ef7d59a428413aa3dc5fc710469029\",\"name\":\"人资共享库-省管理员\",\"code\":\"ixt_shen_admin\",\"domainId\":\"733ad59c35c641dda397ad3ae9ac47b4\",\"state\":\"Y\",\"description\":\"人资共享库-省管理员\",\"createTime\":\"2020-07-07 15:44:21\"},{\"id\":\"a4f374c08baf41b8b95d683632748c54\",\"name\":\"人资共享库-普通用户\",\"code\":\"ixt_noraml_user\",\"domainId\":\"733ad59c35c641dda397ad3ae9ac47b4\",\"state\":\"Y\",\"description\":\"人资共享库-普通用户\",\"createTime\":\"2020-07-07 19:20:11\"},{\"id\":\"e58e88a56f654facabc4d303c850da21\",\"name\":\"人资共享库-单位管理员\",\"code\":\"ixt_dw_admin\",\"domainId\":\"733ad59c35c641dda397ad3ae9ac47b4\",\"state\":\"Y\",\"description\":\"人资共享库-单位管理员\",\"createTime\":\"2020-07-07 15:44:12\"}]";

        JSONArray jsonArray = JSONArray.fromObject(aa);

    }
}
